﻿@model IEnumerable<DCH.Models.Register>
@{
    ViewBag.Title = "registered";

}
<div class="clear"></div>
<!-- Breadcrumb SecTion -->
<div  class="breadcrumb-sec ">

    <!-- Container -->
    <div class="absolute-sec">
        <div class="container">
            <!-- PageInfo -->
            <div class="pageinfo page-title-align-left">
                <h1 style="color: #fff !important">Registered</h1>
            </div>
           
        </div>
        <!-- Container -->
    </div>
</div>
<div class="clear"></div>
<!-- Breadcrumb SecTion -->
<!-- Main Content Section -->
<div id="main-content">
    <!-- Main Section Start -->
    <div class="main-section">
        <div class="container">


            <div class="">
                <section class="page-section">
                    <div class="container">
                        <div class="row">
                            <div class="col-md-12 rich_editor_text">

                                <p>&nbsp;</p>
                                <div id="__if72ru4sdfsdfruh7fewui_once" style="display: none;"></div>
                                <div id="__hggasdgjhsagd_once" style="display: none;"></div>
                            </div>
                        </div>
                    </div>
                </section>
                <!-- Page Section -->
                <section class="page-section  " style="margin-top: -60px; margin-bottom: 0px; border-top: 0px #e0e0e0 solid; border-bottom: 0px #e0e0e0 solid;">
                    <!-- Container Start here -->
                    <div class="container">
                        <!-- Row Start -->
                        <div class="row">
                            <div class="section-fullwidth">

                                <div class="element-size-100">
                                    <div class="col-md-12" style="height: 10px"></div>
                                </div>

                                <div class="element-size-100">
                                    <div class="row">
                                        <div class="col-md-12">
                                            <div class="cs-section-title">
                                                <h2 class="">Registered Team</h2>
                                            </div>
                                            <table class="table table-condensed table_D3D3D3">
                                                <thead>
                                                    <tr>
                                                        <th>
                                                            <span class="box1">#</span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Club Name
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Captain name
                                                            </span>
                                                        </th>
                                                       @* <th>
                                                            <span class="box1">Phone
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Email
                                                            </span>
                                                        </th>*@
                                                        <th>
                                                            <span class="box1">State
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">City
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Payment Status
                                                            </span>
                                                        </th>
                                                         @* <th>
                                                            &nbsp;
                                                        </th>*@
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    @{int i = 0;
                                                      foreach (var item in Model)
                                                      {
                                                          i++;
                                                        <tr>
                                                            <td>@i</td>
                                                            <td>@item.ClubName</td>
                                                            <td>@item.CaptainName</td>
                                                           @* <td>@item.Phone</td>
                                                            <td>@item.Email</td>*@
                                                            <td>@item.State</td>
                                                            <td>@item.City</td>
                                                            @if (item.Payment == false)
                                                            {
                                                                 var ID = string.Empty;
                                                                  var MemberID = string.Empty;
                                                                  switch (item.ID.ToString().Length)
                                                                  {
                                                                      case 1:
                                                                          ID = "00" + item.ID.ToString();
                                                                          break;
                                                                      case 2:
                                                                          ID = "0" + item.ID.ToString();
                                                                          break;
                                                                      default:
                                                                          ID = item.ID.ToString();
                                                                          break;
                                                                  }

                                                                  if (item.State.Substring(0, 3).ToLower().Contains("pun"))
                                                                  {
                                                                      MemberID = "PBT" + ID;
                                                                  }
                                                                  else
                                                                  {
                                                                      MemberID = "HRT" + ID;
                                                                  }
                                                                 <td>
                                                                     @using(Html.BeginForm("LastStep", "Register", new {area="admin", id=@MemberID}, FormMethod.Get))
                                                                     {
                                                                         <input name="phoneNumber" id="phoneNumber" type="text" placeholder="Enter registered mobile number."  style="width:200px" />
                                                                         <input type="submit"  value="Check Details"  class="btn-success btn " />
                                                                          
                                                                     }



                                                                 </td>
                                                            }
                                                            else
                                                            {
                                                                <td>Done</td> 
                                                            }
                                                           @* <td><a href="javascript:void(0);" Class="DetailLink">Detail</a></td>*@
                                                        </tr>
                                                       
                                                      }
                                                    }

                                                </tbody>
                                                <tfoot>
                                                    <tr>
                                                        <td colspan="9">
                                                        </td>
                                                    </tr>
                                                </tfoot>
                                            </table>

                                        </div>
                                        <div class="col-md-12">
                                            <div class="cs-section-title">
                                                <h2 class="">Registered Player</h2>
                                            </div>
                                            <table class="table table-condensed table_D3D3D3">
                                                <thead>
                                                    <tr>
                                                        <th>
                                                            <span class="box1">#</span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Player Name 
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Player Skill
                                                            </span>
                                                        </th>
                                                        @*<th>
                                                            <span class="box1">Phone
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">Email
                                                            </span>
                                                        </th>*@
                                                        <th>
                                                            <span class="box1">State
                                                            </span>
                                                        </th>
                                                        <th>
                                                            <span class="box1">City
                                                            </span>
                                                        </th>
                                                        <th width="30%">
                                                            <span class="box1">Payment Status
                                                            </span>
                                                        </th>
                                                      
                                                    </tr>
                                                </thead>
                                                <tbody>
                                                    @{ int j=0;
                                                        foreach (DCH.Models.Register item in ViewBag.Player) {
                                                            j++;
                                                    <tr>
                                                        <td>@j</td>
                                                        <td>@item.PlayerName</td>
                                                        <td>@item.PlayerSkill</td>
                                                       @* <td>@item.Phone</td>
                                                        <td>@item.Email</td>*@
                                                        <td>@item.State</td>
                                                        <td>@item.City</td>
                                                         @if (item.Payment == false)
                                                            {
                                                                var ID = string.Empty;
                                                                var MemberID = string.Empty;
                                                                switch (item.ID.ToString().Length)
                                                                {
                                                                    case 1:
                                                                        ID = "00" + item.ID.ToString();
                                                                        break;
                                                                    case 2:
                                                                        ID = "0" + item.ID.ToString();
                                                                        break;
                                                                    default:
                                                                        ID = item.ID.ToString();
                                                                        break;
                                                                }

                                                                if (item.State.Substring(0, 3).ToLower().Contains("pun"))
                                                                {
                                                                    MemberID = "PBI" + ID;
                                                                }
                                                                else
                                                                {
                                                                    MemberID = "HRI" + ID;
                                                                }
                                                                <td> @using(Html.BeginForm("LastStep", "Register", new {area="admin", id=@MemberID}, FormMethod.Get))
                                                                     {
                                                                         <input name="phoneNumber" id="phoneNumber" type="text" placeholder="Enter registered mobile number."  style="width:200px;" />
                                                                         <input type="submit"  value="Check Details"  class="btn-success btn " />
                                                                          
                                                                     } </td>
                                                            }
                                                            else
                                                            {
                                                                <td>Done</td> 
                                                            }
                                                    </tr>
                                                    }
                                                    }
                                                   

                                                </tbody>
                                                <tfoot>
                                                    <tr>
                                                        <td colspan="8">
                                                        </td>
                                                    </tr>
                                                </tfoot>
                                            </table>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </section>

            </div>

        </div>




        <!-- Main Section End -->
    </div>
</div>
<!-- Main Content Section -->
<script>
    jQuery(document).ready(function () {
        jQuery(document).on('click', '.DetailLink', function () {
            //jQuery('.DetailRow').hide();
            
                jQuery(this).closest('tr').next().toggle( "slow");
           
        })
    });
    
</script>